package com.example.novelweb.constant;

public interface RedisConstant {
  /* login:code:<account> -> code*/
  String KEY_LOGIN_CODE = "login:code:";
  Long TTL_LOGIN_CODE = 15L;

  /* login:token:<account>:<token> ->(hashmap)UserVO*/
  String KEY_LOGIN_TOKEN = "login:token:";
  Long TTL_LOGIN_TOKEN = 36000L;

  /* novel:collectnum:<novelId> -> Long collectNum */
  String KEY_NOVEL_COLLECT_NUM = "novel:collectnum:";

  /* comment:likes:<commentId> -> Long likes */
  String KEY_COMMENT_LIKE_NUM = "comment:likes:";

  /* (zset) top:collects -> List<NovelVO> */
  String KEY_TOP_COLLECTS = "top:collects";
  Long TTL_TOP_COLLECTS = 15L;
}
